<?php
/**
 * @package Autogenerator for Joomla!
 * @version 3.0.0
 * @author Truong Cong Duc <truongcongduc4@gmail.com>
 * @link autogenerator.blogspot.com
 * @copyright (c) 2013, Truong Cong Duc
 * @license GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

class AutogeneratorControllerXml_type extends JControllerForm {

    /**
     *
     * @var AutogeneratorModelXml_type 
     */
    public $oModelXmlType;
    
    public function __construct($config = array()) {
        parent::__construct($config);
        $this->oModelXmlType = $this->getModel();
    }

    public function changeType() {
        $iXMLTypeId = JFactory::getApplication()->input->getInt('iXMLTypeId');
        
        // Get table.
        $sMessage = $this->oModelXmlType->changeType($iXMLTypeId);

        echo $sMessage;
        die;
    }
    
}
